# Makefile
# Makefile for project pdp-8 emulator in Bash.
# Copyright (c) 2010 Radek Hnilica

bashunit=../../bashunit/code/bashunit

all: help

help:
	@echo "Usage: make target"
	@echo "Targets:"
	@echo "  clean  clean the source from working files"
	@echo "  superclean"
	@echo "  test   run tests"

clean:
	-rm *~
	(cd pdp8progs; make clean)

superclean: clean
	(cd pdp8progs; make superclean)

# Do all the tests
test: testprogs
	$(bashunit) memory.bashunit
	$(bashunit) rim-loader.bashunit
	$(bashunit) cpu.bashunit


testprogs:
	(cd pdp8progs; make)
